const data =[
    [0, 0, 0, 0.011934, 0.073344, 0.173952, 0.239598, 0.297466, 0.343386, 0.373302, 0.372581, 0.328959, 0.314493, 0.33499, 0.33572, 0.321184, 0.304216, 0.281818, 0.240152, 0.208491, 0, 0, 0, 0.011934, 0.073344, 0.173952, 0.239598, 0.297466, 0.343386, 0.373302, 0.372581],
    [0.02902, 0.056838, 0.074127, 0.10051, 0.108958, 0.092144, 0.085086, 0.096825, 0.09654, 0.072686, 0.053033, 0.038184, 0.032537, 0.030998, 0.023355, 0.0175, 0.013293, 0.010114, 0.008413, 0.007358, 0.02902, 0.056838, 0.074127, 0.10051, 0.108958, 0.092144, 0.085086, 0.096825, 0.09654, 0.072686, 0.053033],
    [0, 0, 0, 0.013897, 0.090563, 0.202021, 0.257982, 0.303457, 0.346422, 0.365851, 0.382971, 0.406526, 0.412813, 0.401004, 0.401653, 0.407989, 0.420941, 0.440822, 0.473653, 0.488048, 0, 0, 0, 0.013897, 0.090563, 0.202021, 0.257982, 0.303457, 0.346422, 0.365851, 0.382971],
    [0, 0, 0, 0.00014, 0.000698, 0.001703, 0.001715, 0.001478, 0.00294, 0.002442, 0.00208, 0.001479, 0.000956, 0.001163, 0.001741, 0.002004, 0.002016, 0.002482, 0.002964, 0.002838, 0, 0, 0, 0.00014, 0.000698, 0.001703, 0.001715, 0.001478, 0.00294, 0.002442, 0.00208],
    [0.010596, 0.008182, 0.011367, 0.015365, 0.017825, 0.012391, 0.008066, 0.005402, 0.001872, 0.002085, 0.002281, 0.002707, 0.0034, 0.004039, 0.004008, 0.004375, 0.005509, 0.00844, 0.0134, 0.018129, 0.010596, 0.008182, 0.011367, 0.015365, 0.017825, 0.012391, 0.008066, 0.005402, 0.001872, 0.002085, 0.002281],
    [0.061969, 0.07415, 0.079343, 0.107646, 0.107438, 0.072814, 0.040867, 0.023719, 0.015331, 0.012069, 0.009466, 0.008798, 0.007046, 0.004586, 0.003748, 0.003653, 0.0041, 0.004868, 0.005596, 0.005935, 0.061969, 0.07415, 0.079343, 0.107646, 0.107438, 0.072814, 0.040867, 0.023719, 0.015331, 0.012069, 0.009466],
    [0.121397, 0.136133, 0.196922, 0.282475, 0.321842, 0.256725, 0.179399, 0.111521, 0.075124, 0.06527, 0.066727, 0.074121, 0.073475, 0.060705, 0.059298, 0.065118, 0.072878, 0.07847, 0.087454, 0.089049, 0.121397, 0.136133, 0.196922, 0.282475, 0.321842, 0.256725, 0.179399, 0.111521, 0.075124, 0.06527, 0.066727],
    [0, 0, 0, 0.0000337, 0.000244, 0.000615, 0.001259, 0.002286, 0.003252, 0.003777, 0.005252, 0.009608, 0.01297, 0.011574, 0.012473, 0.015229, 0.018967, 0.020393, 0.023985, 0.028344, 0, 0, 0, 0.0000337, 0.000244, 0.000615, 0.001259, 0.002286, 0.003252, 0.003777, 0.005252],
    [0, 0, 0, 0.000102, 0.000744, 0.001828, 0.003503, 0.006329, 0.008541, 0.00895, 0.011437, 0.017503, 0.020606, 0.018116, 0.019774, 0.023024, 0.025393, 0.026486, 0.030633, 0.048121, 0, 0, 0, 0.000102, 0.000744, 0.001828, 0.003503, 0.006329, 0.008541, 0.00895, 0.011437],
    [0, 0, 0, 0.003439, 0.002849, 0.001719, 0.00093, 0.000635, 0.000113, 0.00015, 0.000363, 0.000467, 0.000217, 0.000147, 0.000254, 0.00044, 0.000458, 0.0003, 0.000136, 0.0000534, 0, 0, 0, 0.003439, 0.002849, 0.001719, 0.00093, 0.000635, 0.000113, 0.00015, 0.000363],
    [0, 0, 0, 0, 0, 0, 0.047712, 0.052208, 0.040161, 0.020819, 0.014323, 0.012587, 0.008886, 0.004744, 0.003545, 0.003054, 0.002208, 0.00166, 0.001464, 0.00153, 0, 0, 0, 0, 0, 0, 0.047712, 0.052208, 0.040161, 0.020819, 0.014323],
    [0, 0, 0, 0.001251, 0.007261, 0.01573, 0.019002, 0.019927, 0.022525, 0.027675, 0.037979, 0.05261, 0.073288, 0.101191, 0.115843, 0.119463, 0.120668, 0.115912, 0.103425, 0.092962, 0, 0, 0, 0.001251, 0.007261, 0.01573, 0.019002, 0.019927, 0.022525, 0.027675, 0.037979],
    [0.038866, 0.03507, 0.021384, 0.014099, 0.00743, 0.003002, 0.001453, 0.000835, 0.000427, 0.000309, 0.000183, 0.0000681, 0.0000239, 0.00000589, 0.00000138, 2.17e-7, 3.03e-8, 6.79e-9, 1.43e-9, 3.01e-10, 0.038866, 0.03507, 0.021384, 0.014099, 0.00743, 0.003002, 0.001453, 0.000835, 0.000427, 0.000309, 0.000183],
    [0.004701, 0.011025, 0.013904, 0.016484, 0.011115, 0.005946, 0.003283, 0.001812, 0.000705, 0.000576, 0.000455, 0.000282, 0.000233, 0.000165, 0.000136, 0.0000744, 0.0000367, 0.0000327, 0.0000273, 0.0000205, 0.004701, 0.011025, 0.013904, 0.016484, 0.011115, 0.005946, 0.003283, 0.001812, 0.000705, 0.000576, 0.000455],
    [0.705367, 0.650694, 0.578589, 0.378462, 0.189652, 0.092631, 0.044447, 0.023654, 0.001931, 0.001927, 0.002431, 0.003717, 0.002723, 0.000658, 0, 0, 0, 0, 0, 0, 0.705367, 0.650694, 0.578589, 0.378462, 0.189652, 0.092631, 0.044447, 0.023654, 0.001931, 0.001927, 0.002431],
    [0, 0, 0, 0.00000836, 0.000065, 0.000244, 0.000475, 0.000644, 0.000675, 0.000643, 0.000597, 0.000507, 0.000423, 0.000435, 0.00045, 0.000478, 0.000397, 0.000466, 0.000424, 0.000351, 0, 0, 0, 0.00000836, 0.000065, 0.000244, 0.000475, 0.000644, 0.000675, 0.000643, 0.000597],
    [0, 0, 0, 0.00000423, 0.0000123, 0.0000239, 0.0000337, 0.0000374, 0.0000381, 0.000032, 0.0000339, 0.0000376, 0.0000425, 0.00005, 0.0000813, 0.000106, 0.000114, 0.000165, 0.000213, 0.000166, 0, 0, 0, 0.00000423, 0.0000123, 0.0000239, 0.0000337, 0.0000374, 0.0000381, 0.000032, 0.0000339],
    [0, 0, 0, 0.00000142, 0.0000117, 0.0000611, 0.0000648, 0.0000886, 0.00011, 0.00011, 0.0000786, 0.000076, 0.0000725, 0.0000794, 0.000106, 0.000112, 0.000102, 0.0001, 0.0000542, 0.0000126, 0, 0, 0, 0.00000142, 0.0000117, 0.0000611, 0.0000648, 0.0000886, 0.00011, 0.00011, 0.0000786],
    [0, 0, 0, 0.00000974, 0.0000488, 0.000113, 0.000144, 0.000152, 0.000101, 0.000108, 0.000105, 0.000114, 0.000106, 0.000101, 0.0000603, 0.0000576, 0.0000691, 0.0000698, 0.0000874, 0.0000824, 0, 0, 0, 0.00000974, 0.0000488, 0.000113, 0.000144, 0.000152, 0.000101, 0.000108, 0.000105],
    [0.000962, 0.002179, 0.003347, 0.004533, 0.004048, 0.001939, 0.001022, 0.000626, 0.000332, 0.00026, 0.000275, 0.000284, 0.000375, 0.000465, 0.00069, 0.000712, 0.000716, 0.001199, 0.002011, 0.002814, 0.000962, 0.002179, 0.003347, 0.004533, 0.004048, 0.001939, 0.001022, 0.000626, 0.000332, 0.00026, 0.000275],
    [0.027121, 0.025728, 0.021016, 0.017375, 0.014473, 0.011209, 0.008069, 0.005168, 0.002736, 0.003134, 0.001989, 0.002168, 0.002615, 0.002715, 0.002765, 0.002543, 0.002313, 0.00245, 0.002749, 0.0031, 0.027121, 0.025728, 0.021016, 0.017375, 0.014473, 0.011209, 0.008069, 0.005168, 0.002736, 0.003134, 0.001989],
    [0, 0, 0, 0.03223, 0.041378, 0.053189, 0.05589, 0.045728, 0.03674, 0.037825, 0.035362, 0.039198, 0.032697, 0.02207, 0.014299, 0.012884, 0.005607, 0.003751, 0.00316, 0.002595, 0, 0, 0, 0.03223, 0.041378, 0.053189, 0.05589, 0.045728, 0.03674, 0.037825, 0.035362]
]

option = {

  tooltip: {
    trigger: 'axis',
   
    axisPointer: {
      type: 'cross',
      label: {
        backgroundColor: '#6a7985'
      }
    }
  },
  legend: {
      left: '3%',
      bottom:'0%',
    data:   ['Hypertensive heart disease', 'Rheumatic heart disease', 'Ischemic heart disease', 'Interstitial lung disease and pulmonary sarcoidosis', 'Endocarditis', 'Myocarditis', 'Other cardiomyopathy', 'Non-rheumatic calcific aortic valve disease', 'Non-rheumatic degenerative mitral valve disease', 'Chagas disease', 'Other non-rheumatic valve diseases', 'Chronic obstructive pulmonary disease', 'Thalassemias', 'G6PD deficiency', 'Congenital heart anomalies', 'Silicosis', 'Asbestosis', 'Coal workers pneumoconiosis', 'Other pneumoconiosis', 'Other hemoglobinopathies and hemolytic anemias', 'Endocrine, metabolic, blood, and immune disorders', 'Alcoholic cardiomyopathy']
  },
  toolbox: {
    feature: {
      saveAsImage: {}
    }
  },
  grid: {
    top: '10%',
    left: '3%',
    right: '3%',
    bottom: '12%',
    containLabel: true
  },
    title: {
    text: 'male_prevalence rate',
     top:'3%',
     left: '42%'
  },
  xAxis: [
    { 
      type: 'category',
      boundaryGap: false,
      data: ['<5', '5-9', '10-14', '15-19', '20-24', '25-29', '30-34',
      '35-39', '40-44', '45-49', '50-54', '55-59', '60-64', '65-69',
      '70-74', '75-79', '80-84', '85-89', '90-94', '>95']
    }
  ],
  yAxis: [
    { max:'1',
      min:'0',
      type: 'value'
    }
  ],
  series: [
    {
      name: 'Hypertensive heart disease',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
       
           
      },
      emphasis: {
        focus: 'series'
      },
      data:data[0],
       
    }, { name: 'Rheumatic heart disease',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
     
      },
      emphasis: {
        focus: 'series'
      },
      data: data[1],       },
    {
      name: 'Ischemic heart disease',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
        
      },
      emphasis: {
        focus: 'series'
      },
      data:data[2],      },
     {
      name: 'Interstitial lung disease and pulmonary sarcoidosis',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
        
      },
      emphasis: {
        focus: 'series'
      },
      data:data[3],
      },
      
      
       {
      name: 'Endocarditis',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      label: {
        show: true,
        position: 'top'
      },
      areaStyle: {
        opacity: 0.8,
        
      },
      emphasis: {
        focus: 'series'
      },
      data: data[4],
      },
     {
      name: 'Myocarditis',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      label: {
        show: true,
        position: 'top'
      },
      areaStyle: {
        opacity: 0.8,
        
      },
      emphasis: {
        focus: 'series'
      },
      data: data[5],
       },
    {
      name: 'Other cardiomyopathy',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
         },
      emphasis: {
        focus: 'series'
      },
      data: data[6],   
    },
     {
      name: 'Non-rheumatic calcific aortic valve disease',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
        
      },
      emphasis: {
        focus: 'series'
      },
      data: data[7],
       },
    {
      name: 'Non-rheumatic degenerative mitral valve disease',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
       
      },
      emphasis: {
        focus: 'series'
      },
      data: data[8], 
        },
    {
      name: 'Chagas disease',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
       
      },
      emphasis: {
        focus: 'series'
      },
      data:data[9],   },
    {
      name: 'Other non-rheumatic valve diseases',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      label: {
        show: true,
        position: 'top'
      },
      areaStyle: {
        opacity: 0.8,
        
      },
      emphasis: {
        focus: 'series'
      },
      data:data[10],
   
         },
    {
      name: 'Chronic obstructive pulmonary disease',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
        
      },
      emphasis: {
        focus: 'series'
      },
      data:data[11],  },
    {
      name: 'Thalassemias',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
       
      },
      emphasis: {
        focus: 'series'
      },
      data: data[12],
      
      
    },
    {
      name: 'G6PD deficiency',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
        
      },
      emphasis: {
        focus: 'series'
      },
      data: data[13],},
        {
      name: 'Congenital heart anomalies',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
       
      },
      emphasis: {
        focus: 'series'
      },
      data:data[14],
           },
    {
      name: 'Silicosis',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      label: {
        show: true,
        position: 'top'
      },
      areaStyle: {
        opacity: 0.8,
        
      },
      emphasis: {
        focus: 'series'
      },
      data:data[15],   },
      {
      name: 'Asbestosis',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
       
      },
      emphasis: {
        focus: 'series'
      },
      data:data[16],
           },
            {
      name: 'Coal workers pneumoconiosis',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
       
      },
      emphasis: {
        focus: 'series'
      },
      data:data[17],
           },
            {
      name: 'Other pneumoconiosis',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
       
      },
      emphasis: {
        focus: 'series'
      },
      data:data[18],
           },
                 {
      name: 'Other hemoglobinopathies and hemolytic anemias',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
       
      },
      emphasis: {
        focus: 'series'
      },
      data:data[19],
           },
                 {
      name: 'Endocrine, metabolic, blood, and immune disorders',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
       
      },
      emphasis: {
        focus: 'series'
      },
      data:data[20],
           },
                 {
      name: 'Alcoholic cardiomyopathy',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
       
      },
      emphasis: {
        focus: 'series'
      },
      data:data[21],
           },
  ]
}
 